home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1987
/
06
/
bbs.l1
next >
Wrap
Text File
|
1987-05-05
|
780b
|
45 lines
Listing One
list
1 TPATH=/u/bbs/rbin
# check the command argument - $1
2 if [ "$1" = MS]
3 then
# argument is for MS-DOS files
4 echo 'who am i | cut -f1 -d" " ' 'date | cut -c1-16 ' "MS.list" >>/u/bbs/log.file
5 echo
6 more $TPATH/MS.list
7 elif [ "$1" = Mac ]
8 then
# argument is for Macintosh files
9 echo 'who am i | cut -f1 -d" " ' 'date | cut -c1-16 ' "Mac.list" >>/u/bbs/log.file
10 echo
11 more $TPATH/Mac.list
12 elif [ "$1" = Unix ]
13 then
# argument is for Unix files
14 echo 'who am i | cut -f1 -d" " ' 'date | cut -c1-c16 ' "Unix.list" >>/u/bbs/log.file
15 echo
16 more $TPATH/Unix.list
17 else
# no argument was entered
18 echo
19 echo "List which directory? (MS, Mac, or Unix)"
20 fi